/*
 * @Descripttion: 
 * @version: 
 * @Author: Miller Zhou
 * @Date: 2021-02-18 13:51:27
 * @LastEditors: Miller Zhou
 * @LastEditTime: 2021-02-20 15:21:37
 */
#ifndef __ZSPI_H__
#define __ZSPI_H__

#include "all_config.h"
#include "nativeInterface.h"


typedef enum
{
    SPISpeed_About1Mhz,
    SPISpeed_About10Mhz
}Z_SPISpeed;

#ifdef mcu_stm32f1_hal
#include "stm32f1xx_hal.h"
#endif

#ifdef mcu_stm32f4_hal
#include "stm32f4xx_hal.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif
void SPI_Transmit(unsigned char *data, unsigned int len);
void SPI_Receive(unsigned char *data, unsigned int len);
#ifdef __cplusplus
}
#endif

#endif
